org.kuali.rice.kim.util
Class KimCommonUtils
java.lang.Object
org.kuali.rice.kim.util.KimCommonUtils
public class KimCommonUtils
- extends Object
This is a description of what this class does - bhargavp don't forget to fill
this in.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
Method Summary |
protected static boolean |
canOverrideEntityPrivacyPreferences(String principalId)
|
static List<GroupAttributeDataImpl> |
copyInfoAttributesToGroupAttributes(Map<String,String> infoMap,
String groupId,
String kimTypeId)
|
static GroupImpl |
copyInfoToGroup(Group info,
GroupImpl group)
|
static void |
copyProperties(Object targetToCopyTo,
Object sourceToCopyFrom)
|
static String |
decryptExternalIdentifier(String externalIdentifier,
String externalIdentifierType)
|
static boolean |
doesPropertyNameMatch(String requestedDetailsPropertyName,
String permissionDetailsPropertyName)
|
static String |
encryptExternalIdentifier(String externalIdentifier,
String externalIdentifierType)
|
private static KimTypeAttributeInfo |
getAttributeInfo(List<KimTypeAttributeInfo> attributeInfoList,
String attributeName)
|
static String |
getClosestParentDocumentTypeName(DocumentType documentType,
Set<String> potentialParentDocumentTypeNames)
|
static String |
getComponentFullName(Class<? extends Object> clazz)
|
static String |
getComponentSimpleName(Class<? extends Object> clazz)
|
static IdentityManagementService |
getIdentityManagementService()
|
static String |
getKimBasePath()
|
static KimTypeService |
getKimTypeService(KimType kimType)
Deprecated. Please use KIMServiceLocator.getKimTypeService(KimType) instead |
static KimTypeService |
getKimTypeService(String serviceName)
Deprecated. Please use KIMServiceLocator.getKimTypeService(QName) instead |
private static KualiModuleService |
getKualiModuleService()
|
static AttributeSet |
getNamespaceAndActionClass(Class<? extends Object> clazz)
|
static AttributeSet |
getNamespaceAndComponentFullName(Class<? extends Object> clazz)
|
static AttributeSet |
getNamespaceAndComponentSimpleName(Class<? extends Object> clazz)
|
static String |
getNamespaceCode(Class<? extends Object> clazz)
|
static String |
getPathWithKimContext(String path,
String kimActionName)
|
static boolean |
isAttributeSetEntryEquals(AttributeSet map1,
AttributeSet map2,
String key)
|
static boolean |
isSuppressAddress(String entityId)
|
static boolean |
isSuppressEmail(String entityId)
|
static boolean |
isSuppressName(String entityId)
|
static boolean |
isSuppressPersonal(String entityId)
|
static boolean |
isSuppressPhone(String entityId)
|
static QName |
resolveKimTypeServiceName(String kimTypeServiceName)
Resolves the given kim type service name represented as a String to the appropriate QName. |
static boolean |
storedValueNotSpecifiedOrInputValueMatches(AttributeSet storedValues,
AttributeSet inputValues,
String attributeName)
|
static String |
stripEnd(String toStripFrom,
String toStrip)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
private static final org.apache.log4j.Logger LOG
kualiModuleService
private static KualiModuleService kualiModuleService
kimTypeServiceCache
private static Map<String,KimTypeService> kimTypeServiceCache
identityManagementService
private static IdentityManagementService identityManagementService
KimCommonUtils
private KimCommonUtils()
getKualiModuleService
private static KualiModuleService getKualiModuleService()
getClosestParentDocumentTypeName
public static String getClosestParentDocumentTypeName(DocumentType documentType,
Set<String> potentialParentDocumentTypeNames)
storedValueNotSpecifiedOrInputValueMatches
public static boolean storedValueNotSpecifiedOrInputValueMatches(AttributeSet storedValues,
AttributeSet inputValues,
String attributeName)
doesPropertyNameMatch
public static boolean doesPropertyNameMatch(String requestedDetailsPropertyName,
String permissionDetailsPropertyName)
getNamespaceAndComponentSimpleName
public static AttributeSet getNamespaceAndComponentSimpleName(Class<? extends Object> clazz)
getNamespaceAndComponentFullName
public static AttributeSet getNamespaceAndComponentFullName(Class<? extends Object> clazz)
getNamespaceAndActionClass
public static AttributeSet getNamespaceAndActionClass(Class<? extends Object> clazz)
getNamespaceCode
public static String getNamespaceCode(Class<? extends Object> clazz)
getComponentSimpleName
public static String getComponentSimpleName(Class<? extends Object> clazz)
getComponentFullName
public static String getComponentFullName(Class<? extends Object> clazz)
isAttributeSetEntryEquals
public static boolean isAttributeSetEntryEquals(AttributeSet map1,
AttributeSet map2,
String key)
resolveKimTypeServiceName
public static QName resolveKimTypeServiceName(String kimTypeServiceName)
- Resolves the given kim type service name represented as a String to the appropriate QName.
If the value given is empty or null, then it will resolve to the default KimTypeService name.
getKimTypeService
@Deprecated
public static KimTypeService getKimTypeService(KimType kimType)
- Deprecated. Please use KIMServiceLocator.getKimTypeService(KimType) instead
getKimTypeService
@Deprecated
public static KimTypeService getKimTypeService(String serviceName)
- Deprecated. Please use KIMServiceLocator.getKimTypeService(QName) instead
copyProperties
public static void copyProperties(Object targetToCopyTo,
Object sourceToCopyFrom)
getKimBasePath
public static String getKimBasePath()
getPathWithKimContext
public static String getPathWithKimContext(String path,
String kimActionName)
stripEnd
public static String stripEnd(String toStripFrom,
String toStrip)
canOverrideEntityPrivacyPreferences
protected static boolean canOverrideEntityPrivacyPreferences(String principalId)
isSuppressName
public static boolean isSuppressName(String entityId)
isSuppressEmail
public static boolean isSuppressEmail(String entityId)
isSuppressAddress
public static boolean isSuppressAddress(String entityId)
isSuppressPhone
public static boolean isSuppressPhone(String entityId)
isSuppressPersonal
public static boolean isSuppressPersonal(String entityId)
encryptExternalIdentifier
public static String encryptExternalIdentifier(String externalIdentifier,
String externalIdentifierType)
decryptExternalIdentifier
public static String decryptExternalIdentifier(String externalIdentifier,
String externalIdentifierType)
getIdentityManagementService
public static IdentityManagementService getIdentityManagementService()
copyInfoToGroup
public static GroupImpl copyInfoToGroup(Group info,
GroupImpl group)
copyInfoAttributesToGroupAttributes
public static List<GroupAttributeDataImpl> copyInfoAttributesToGroupAttributes(Map<String,String> infoMap,
String groupId,
String kimTypeId)
- Parameters:
infoMap
- Containing the Info Attribute objects.groupId
- for the group of attributeskimTypeId
- for the group of attributes
- Returns:
- a list of group attributes
getAttributeInfo
private static KimTypeAttributeInfo getAttributeInfo(List<KimTypeAttributeInfo> attributeInfoList,
String attributeName)
Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.