Class JpaResource
- java.lang.Object
-
- org.apache.archiva.redback.rbac.jpa.model.JpaResource
-
- All Implemented Interfaces:
Serializable,Resource
@Entity public class JpaResource extends Object implements Resource, Serializable
Created by martin on 25.09.16.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JpaResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetIdentifier()Get The string identifier for an operation.inthashCode()booleanisPattern()true if the identifer is a pattern that is to be evaluated, for example x.* could match x.a or x.b and x.** could match x.foo Jesse: SeeResource.setPattern(boolean)booleanisPermanent()Test to see if the object is a permanent object or not.voidsetIdentifier(String identifier)Set The string identifier for an operation.voidsetPattern(boolean pattern)true if the identifer is a pattern that is to be evaluated, for example x.* could match x.a or x.b and x.** could match x.foo TODO is this even a good idea? TODO we could look for a character like '*' or a string starting with "%/" to indicate if this is a pattern or not.voidsetPermanent(boolean permanent)Set flag indicating if the object is a permanent object or not.
-
-
-
Constructor Detail
-
JpaResource
public JpaResource()
-
-
Method Detail
-
getIdentifier
public String getIdentifier()
Description copied from interface:ResourceGet The string identifier for an operation. NOTE: This field is considered the Primary Key for this object.- Specified by:
getIdentifierin interfaceResource
-
setIdentifier
public void setIdentifier(String identifier)
Description copied from interface:ResourceSet The string identifier for an operation. NOTE: This field is considered the Primary Key for this object.- Specified by:
setIdentifierin interfaceResource
-
isPattern
public boolean isPattern()
Description copied from interface:Resourcetrue if the identifer is a pattern that is to be evaluated, for example x.* could match x.a or x.b and x.** could match x.foo Jesse: SeeResource.setPattern(boolean)
-
setPattern
public void setPattern(boolean pattern)
Description copied from interface:Resourcetrue if the identifer is a pattern that is to be evaluated, for example x.* could match x.a or x.b and x.** could match x.foo TODO is this even a good idea? TODO we could look for a character like '*' or a string starting with "%/" to indicate if this is a pattern or not.- Specified by:
setPatternin interfaceResource
-
isPermanent
public boolean isPermanent()
Description copied from interface:ResourceTest to see if the object is a permanent object or not.- Specified by:
isPermanentin interfaceResource- Returns:
- true if the object is permanent.
-
setPermanent
public void setPermanent(boolean permanent)
Description copied from interface:ResourceSet flag indicating if the object is a permanent object or not.- Specified by:
setPermanentin interfaceResource- Parameters:
permanent- true if the object is permanent.
-
-