|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.sistematica.isharedoc.service.PartitionServiceImpl
@Service(value="partitionService") public class PartitionServiceImpl
Field Summary | |
---|---|
(package private) it.neverworks.util.Configuration |
configuration
|
(package private) DocumentManager |
documentManager
|
(package private) it.neverworks.data.EntityManager |
entities
|
(package private) IsharedocSystemService |
isharedocSystemService
|
(package private) MessageboxService |
messageboxService
|
(package private) NotificationService |
notificationService
|
protected static java.lang.ThreadLocal<java.util.Stack<Partition>> |
partitionStack
|
(package private) WorkProcessManager |
processManager
|
(package private) org.hibernate.SessionFactory |
sessionFactory
|
(package private) it.neverworks.jasper.ConfigurableFileResolver |
setupTemplateFileResolver
|
(package private) StoryboardService |
storyboardService
|
(package private) WorkTaskManager |
taskManager
|
(package private) it.neverworks.application.service.UserInfo |
userInfo
|
Constructor Summary | |
---|---|
PartitionServiceImpl()
|
Method Summary | |
---|---|
void |
broadcastFile(File file,
boolean createLinkInUserHome,
java.lang.String group,
java.lang.String title,
java.lang.String message)
Broadcast file. |
void |
broadcastMessage(java.lang.String group,
java.lang.String title,
java.lang.String message)
Broadcast message. |
Partition |
create(java.lang.String userId,
java.lang.String userPassword,
java.lang.String name,
java.lang.String code,
java.lang.String description)
Creates the partition. |
void |
deleteLicense(License contract)
Delete license. |
void |
deleteLicenseService(LicenseService service)
Delete license service. |
void |
drop(Partition partition,
boolean debug)
Attenzione!!! |
java.util.List<License> |
getAllLicenses(Partition partition)
Gets the all licenses. |
java.util.List<Partition> |
getAllPartitions()
Gets the all partitions. |
java.util.List<Partition> |
getApplicationPartitions()
Gets the application partitions. |
Partition |
getPartition()
Gets the partition. |
java.util.List<it.neverworks.security.User> |
getUsers(Partition... partitions)
Gets the users. |
java.util.List<it.neverworks.security.User> |
getUsers(java.lang.String order,
Partition... partitions)
Gets the users. |
java.util.List<it.neverworks.security.User> |
getUsers(it.neverworks.security.User example,
Partition... partitions)
Gets the users. |
java.util.List<it.neverworks.security.User> |
getUsers(it.neverworks.security.User example,
java.lang.String order,
Partition... partitions)
Gets the users. |
java.util.List<it.neverworks.security.User> |
getUsersCurrentPartition()
Gets the users current partition. |
void |
moveUserData(it.neverworks.security.User from,
it.neverworks.security.User to,
boolean debug)
Attenzione!!! |
Partition |
pop()
Pop. |
void |
push(java.lang.Long partitionId)
Push. |
void |
push(Partition partition)
Push. |
void |
repair()
Repair the partition. |
void |
repair(Partition partition)
Repair. |
void |
repairAllPartitions()
Repair all partitions. |
void |
saveLicense(Server server,
License license)
Save license. |
void |
saveLicenseService(License contract,
LicenseService service)
Save license service. |
it.neverworks.security.User |
sudo(java.lang.Long partitionId)
Sudo. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
it.neverworks.application.service.UserInfo userInfo
it.neverworks.data.EntityManager entities
DocumentManager documentManager
MessageboxService messageboxService
StoryboardService storyboardService
WorkProcessManager processManager
WorkTaskManager taskManager
org.hibernate.SessionFactory sessionFactory
it.neverworks.util.Configuration configuration
it.neverworks.jasper.ConfigurableFileResolver setupTemplateFileResolver
IsharedocSystemService isharedocSystemService
NotificationService notificationService
protected static java.lang.ThreadLocal<java.util.Stack<Partition>> partitionStack
Constructor Detail |
---|
public PartitionServiceImpl()
Method Detail |
---|
public Partition getPartition()
PartitionService
getPartition
in interface PartitionService
@Transactional public void push(java.lang.Long partitionId)
PartitionService
push
in interface PartitionService
partitionId
- the partition idpublic void push(Partition partition)
PartitionService
push
in interface PartitionService
partition
- the partitionpublic Partition pop()
PartitionService
pop
in interface PartitionService
@Transactional public it.neverworks.security.User sudo(java.lang.Long partitionId) throws java.lang.Exception
PartitionService
sudo
in interface PartitionService
partitionId
- the partition id
java.lang.Exception
- the exception@Transactional public Partition create(java.lang.String userId, java.lang.String userPassword, java.lang.String name, java.lang.String code, java.lang.String description)
PartitionService
create
in interface PartitionService
userId
- the user iduserPassword
- the user passwordname
- the namecode
- the codedescription
- the description
@Transactional public void drop(Partition partition, boolean debug)
drop
in interface PartitionService
partition
- the partitiondebug
- the debug@Transactional public void moveUserData(it.neverworks.security.User from, it.neverworks.security.User to, boolean debug)
moveUserData
in interface PartitionService
from
- the fromto
- the todebug
- the debug@Transactional public void repair()
PartitionService
repair
in interface PartitionService
@Transactional public void repair(Partition partition)
PartitionService
repair
in interface PartitionService
partition
- the partition@Transactional public void repairAllPartitions()
PartitionService
repairAllPartitions
in interface PartitionService
public java.util.List<it.neverworks.security.User> getUsers(Partition... partitions)
PartitionService
getUsers
in interface PartitionService
partitions
- the partitions
public java.util.List<it.neverworks.security.User> getUsers(it.neverworks.security.User example, Partition... partitions)
PartitionService
getUsers
in interface PartitionService
example
- the examplepartitions
- the partitions
public java.util.List<it.neverworks.security.User> getUsers(java.lang.String order, Partition... partitions)
PartitionService
getUsers
in interface PartitionService
order
- the orderpartitions
- the partitions
public java.util.List<it.neverworks.security.User> getUsers(it.neverworks.security.User example, java.lang.String order, Partition... partitions)
PartitionService
getUsers
in interface PartitionService
example
- the exampleorder
- the orderpartitions
- the partitions
public java.util.List<it.neverworks.security.User> getUsersCurrentPartition()
PartitionService
getUsersCurrentPartition
in interface PartitionService
@Transactional(propagation=REQUIRES_NEW, readOnly=true) public java.util.List<Partition> getAllPartitions()
PartitionService
getAllPartitions
in interface PartitionService
@Transactional(propagation=REQUIRES_NEW, readOnly=true) public java.util.List<Partition> getApplicationPartitions()
PartitionService
getApplicationPartitions
in interface PartitionService
@Transactional public java.util.List<License> getAllLicenses(Partition partition)
PartitionService
getAllLicenses
in interface PartitionService
partition
- the partition
@Transactional public void saveLicense(Server server, License license)
PartitionService
saveLicense
in interface PartitionService
server
- the serverlicense
- the license@Transactional public void deleteLicense(License contract)
PartitionService
deleteLicense
in interface PartitionService
contract
- the license@Transactional public void saveLicenseService(License contract, LicenseService service)
PartitionService
saveLicenseService
in interface PartitionService
contract
- the licenseservice
- the service@Transactional public void deleteLicenseService(LicenseService service)
PartitionService
deleteLicenseService
in interface PartitionService
service
- the service@Transactional public void broadcastFile(File file, boolean createLinkInUserHome, java.lang.String group, java.lang.String title, java.lang.String message)
PartitionService
broadcastFile
in interface PartitionService
file
- the filecreateLinkInUserHome
- the create link in user homegroup
- the grouptitle
- the titlemessage
- the message@Transactional public void broadcastMessage(java.lang.String group, java.lang.String title, java.lang.String message)
PartitionService
broadcastMessage
in interface PartitionService
group
- the grouptitle
- the titlemessage
- the message
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |