@Entity public class DefaultPermission extends Object implements Permission<UUID>
| Constructor and Description |
|---|
DefaultPermission()
Default constructor
|
DefaultPermission(String title,
String description,
Application application,
Action action)
Complete constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Action |
getAction() |
Application |
getApplication() |
String |
getCode()
Retrieve the code of the permission
|
String |
getDescription()
Retrieve the description of the permission
|
UUID |
getId()
Retrieve the id of the permission
|
String |
getTitle()
Retrieve the title of the permission
|
int |
hashCode() |
void |
setAction(Action action) |
void |
setApplication(Application application) |
void |
setCode(String code)
Set the code of the permission
|
void |
setDescription(String description)
Set the description of the permission
|
void |
setId(UUID id)
Set the id of the permission
|
void |
setTitle(String title)
Set the title of the permission
|
String |
toString() |
void |
updateCode() |
public DefaultPermission()
public DefaultPermission(String title, String description, Application application, Action action)
title - The titledescription - The descriptionapplication - The applicationaction - The actionpublic UUID getId()
getId in interface Permission<UUID>public void setId(UUID id)
setId in interface Permission<UUID>id - The idpublic String getCode()
getCode in interface Permission<UUID>public void setCode(String code)
setCode in interface Permission<UUID>code - The codepublic Action getAction()
getAction in interface Permission<UUID>public void setAction(Action action)
setAction in interface Permission<UUID>action - The action@NotNull @NotEmpty public String getTitle()
public void setTitle(String title)
title - The title@NotNull @NotEmpty public String getDescription()
public void setDescription(String description)
description - The descriptionpublic Application getApplication()
getApplication in interface Permission<UUID>public void setApplication(Application application)
setApplication in interface Permission<UUID>application - The applicationpublic void updateCode()
Copyright © 2014. All Rights Reserved.