Package edu.internet2.middleware.grouper
Class RegistrySubjectAttribute
java.lang.Object
edu.internet2.middleware.grouper.RegistrySubjectAttribute
- All Implemented Interfaces:
Serializable
Hibernate representation of the JDBC
SubjectAttribute
table.- Since:
- Version:
- $Id: RegistrySubjectAttribute.java,v 1.2 2008-10-21 03:51:03 mchyzer Exp $
- See Also:
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionFor Hibernate.protected
RegistrySubjectAttribute
(String id, String name, String value, String searchVal) -
Method Summary
Modifier and TypeMethodDescriptionstatic RegistrySubjectAttribute
addOrUpdate
(String subjectId, String attributeName, String value) Add or update registry subject attributevoid
delete()
Delete existingRegistrySubjectAttribute
.boolean
static RegistrySubjectAttribute
getName()
getValue()
int
hashCode()
setSearchValue
(String value) setSubjectId
(String subjectId) void
store()
Delete existingRegistrySubjectAttribute
.
-
Field Details
-
serialVersionUID
public static final long serialVersionUID- See Also:
-
-
Constructor Details
-
RegistrySubjectAttribute
public RegistrySubjectAttribute()For Hibernate.- Since:
-
RegistrySubjectAttribute
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
getName
-
getSearchValue
-
getSubjectId
-
getValue
-
setName
-
setSearchValue
-
setSubjectId
-
setValue
-
delete
Delete existingRegistrySubjectAttribute
.try { rSubjAttr.delete(s); } catch (GrouperException eG) { // failed to delete this RegistrySubject } catch (InsufficientPrivilegeException eIP) { // not privileged to delete this RegistrySubject }
- Throws:
GrouperException
- if RegistrySubjectAttribute cannot be deleted.IllegalStateException
- if GrouperSession is null.InsufficientPrivilegeException
- if not privileged to delete RegistrySubjects.- Since:
- 2.4.0
-
store
Delete existingRegistrySubjectAttribute
.try { rSubjAttr.delete(s); } catch (GrouperException eG) { // failed to delete this RegistrySubject } catch (InsufficientPrivilegeException eIP) { // not privileged to delete this RegistrySubject }
- Throws:
GrouperException
- if RegistrySubjectAttribute cannot be deleted.IllegalStateException
- if GrouperSession is null.InsufficientPrivilegeException
- if not privileged to delete RegistrySubjects.- Since:
- 2.4.0
-
find
public static RegistrySubjectAttribute find(String subjectId, String attributeName, boolean exceptionIfNotFound) - Parameters:
subjectId
-attributeName
-exceptionIfNotFound
-- Returns:
- the attribute or null
-
addOrUpdate
public static RegistrySubjectAttribute addOrUpdate(String subjectId, String attributeName, String value) Add or update registry subject attribute- Parameters:
subjectId
-attributeName
-value
-- Returns:
- The created
RegistrySubjectAttribute
. - Since:
- 2.4.0
-