/** * Return which entity scope this profile is in * * @return entity scope the profile is in */ public EntityScope getScope() { return getNamespaceId().equals(NamespaceId.SYSTEM) ? EntityScope.SYSTEM : EntityScope.USER; }
/** * Return which entity scope this profile is in * * @return entity scope the profile is in */ public EntityScope getScope() { return getNamespaceId().equals(NamespaceId.SYSTEM) ? EntityScope.SYSTEM : EntityScope.USER; }
/** * Return the scoped name. If it is a system profile, the profile name will be prefixed by 'SYSTEM:'. Otherwise, * the profile name will be prefixed by 'USER:'. * * @return the scoped profile name */ public String getScopedName() { EntityScope scope = NamespaceId.SYSTEM.equals(getNamespaceId()) ? EntityScope.SYSTEM : EntityScope.USER; return String.format("%s:%s", scope.name(), profileName); }
/** * Return the scoped name. If it is a system profile, the profile name will be prefixed by 'SYSTEM:'. Otherwise, * the profile name will be prefixed by 'USER:'. * * @return the scoped profile name */ public String getScopedName() { EntityScope scope = NamespaceId.SYSTEM.equals(getNamespaceId()) ? EntityScope.SYSTEM : EntityScope.USER; return String.format("%s:%s", scope.name(), profileName); }
private MDSKey getEntityIndexRowKeyPrefix(ProfileId profileId) { return getRowKey(INDEX_PREFIX, profileId.getNamespaceId(), profileId.getProfile(), null); }
private MDSKey getProfileRowKey(ProfileId profileId) { return getRowKey(PROFILE_PREFIX, profileId.getNamespaceId(), profileId.getProfile(), null); }
private MDSKey getEntityIndexRowKey(ProfileId profileId, EntityId entityId) { return getRowKey(INDEX_PREFIX, profileId.getNamespaceId(), profileId.getProfile(), entityId); }
private MDSKey getProfileRowKey(ProfileId profileId) { return getRowKey(PROFILE_PREFIX, profileId.getNamespaceId(), profileId.getProfile(), null); }
private MDSKey getEntityIndexRowKeyPrefix(ProfileId profileId) { return getRowKey(INDEX_PREFIX, profileId.getNamespaceId(), profileId.getProfile(), null); }
private MDSKey getEntityIndexRowKey(ProfileId profileId, EntityId entityId) { return getRowKey(INDEX_PREFIX, profileId.getNamespaceId(), profileId.getProfile(), entityId); }
return scopedName != null && scopedName.equals(profileId.getScopedName()); }; if (profileId.getNamespaceId().equals(NamespaceId.SYSTEM)) { activeRuns = appMetadataStore.getActiveRuns(runRecordMetaPredicate); } else { activeRuns = appMetadataStore.getActiveRuns(Collections.singleton(profileId.getNamespaceId()), runRecordMetaPredicate);
return scopedName != null && scopedName.equals(profileId.getScopedName()); }; if (profileId.getNamespaceId().equals(NamespaceId.SYSTEM)) { activeRuns = appMetadataStore.getActiveRuns(runRecordMetaPredicate); } else { activeRuns = appMetadataStore.getActiveRuns(Collections.singleton(profileId.getNamespaceId()), runRecordMetaPredicate);
profileService.disableProfile(myProfile); profileService.disableProfile(myProfile2); profileService.deleteAllProfiles(myProfile.getNamespaceId()); mds.removeMetadata(workflowId.toMetadataEntity()); mds.removeMetadata(scheduleId.toMetadataEntity());